package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 取消订单记录对象 order_cancellation
 * 
 * @author ruoyi
 * @date 2024-09-25
 */
public class OrderCancellation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 取消记录id */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long clientId;

    /** 取消原因 */
    @Excel(name = "取消原因")
    private String canReason;

    /** 取消时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "取消时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date canAt;

    /** 退款金额 */
    @Excel(name = "退款金额")
    private Long refundAmount;

    /** 退款状态 */
    @Excel(name = "退款状态")
    private String refundStatus;

    /** 取消订单记录表 */
    @Excel(name = "取消订单记录表")
    private Long columnName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setClientId(Long clientId) 
    {
        this.clientId = clientId;
    }

    public Long getClientId() 
    {
        return clientId;
    }
    public void setCanReason(String canReason) 
    {
        this.canReason = canReason;
    }

    public String getCanReason() 
    {
        return canReason;
    }
    public void setCanAt(Date canAt) 
    {
        this.canAt = canAt;
    }

    public Date getCanAt() 
    {
        return canAt;
    }
    public void setRefundAmount(Long refundAmount) 
    {
        this.refundAmount = refundAmount;
    }

    public Long getRefundAmount() 
    {
        return refundAmount;
    }
    public void setRefundStatus(String refundStatus) 
    {
        this.refundStatus = refundStatus;
    }

    public String getRefundStatus() 
    {
        return refundStatus;
    }
    public void setColumnName(Long columnName) 
    {
        this.columnName = columnName;
    }

    public Long getColumnName() 
    {
        return columnName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("clientId", getClientId())
            .append("canReason", getCanReason())
            .append("canAt", getCanAt())
            .append("refundAmount", getRefundAmount())
            .append("refundStatus", getRefundStatus())
            .append("columnName", getColumnName())
            .toString();
    }
}
